class MinecraftError(Exception):
    def __init__(self, reason):
        self.reason = reason
    def __str__(self):
        return self.reason

class TesxtureMissingError(MinecraftError):
    def __init__(self, filename):
        self.filename = filename
        message = f"Can't read texture file {self.filename}."
        super(TesxtureMissingError, self).__init__(message)